import request from '@/utils/request'

export default{
    getChapterList(couserId){
        return request({
            url: `/eduservice/chapter/getAddChaper/${couserId}`,
            method: 'get'
          })  
    },
    addChapter(eduChapter){
        return request({
            url: `/eduservice/chapter/addChapter`,
            method: 'post',
            data: eduChapter
          })  
    },

    getChapter(id){
        return request({
            url: `/eduservice/chapter/getChapter/${id}`,
            method: 'get'
          })  
    },
    updateChapter(eduChapter){
        return request({
            url: `/eduservice/chapter/updateChapter`,
            method: 'post',
            data: eduChapter
          })  
    },
    deleteChapter(id){
        return request({
            url: `/eduservice/chapter/deleteChapter/${id}`,
            method: 'delete'
          })  
    },

}

